var mongoose = require('mongoose');
require("./modle/adminModle");
require("./modle/masterModle");
require("./modle/serviceModle");
require("./modle/storeGoodsModle");
require("./modle/storeModle");
require("./modle/storeorderModle");
require("./modle/supplierfoodsModle");
require("./modle/supplierModle");

//建立数据库连接
mongoose.connect('mongodb://localhost/petsystem', {
    useUnifiedTopology: true,
    useNewUrlParser: true
});
mongoose.connection.on('connected', function () {
    console.log('Mongoose connected to mongodb://localhost/petsystem');
});

